<?php
$promotionTour = $this->listPromotionTour;
$promotionCruise = $this->listPromotionCruise;
?>
<div class="wrapper-content">
    <div class="top-title">
        <div class="content-title" style="margin-left:20px">
            <h2><a href="/promotion/1/1/Tour.html"><?php echo $this->translate('List_Promotion_Tour') ;?></a></h2>
        </div>
    </div>
    <!-- column left -->
    <div class="span12" id="content-right-2">
        <?php if($promotionTour): ?>
    	<div class="content-right-2-content" style="margin-top: 20px;">
    	    <?php foreach($promotionTour as $k => $v): ?>
    	    <?php $url = "/tour/detail/". $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>
    		<div class="block-list">
    		    <div class="block-list-title">
                    <a href="<?php echo $url; ?>" title="<?php echo $v['title']; ?>">
                        <?php echo $this->snippet($v['title']); ?>
                    </a>
                </div>
                <div class="block-list-content">
					<a href="<?php echo $url; ?>"><img class="thumbnail" src="<?php echo $v['thumbnail']; ?>" /></a>
    				<div class="overview">
    					<?php echo $this->snippet($v['overview'], 140);?>
    				</div>
    				<div class="view-detail">
    				    <a href="<?php echo $url; ?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
    				</div>
                </div>
    		</div>
    		<?php endforeach; ?>
    	</div>
    	<?php endif; ?>

    	<?php if(count($promotionTour) >= 12): ?>
    	<div class="see-more-block">
            <a href="/promotion/1/1/Tour.html"><?php echo $this->translate('More_Promotion_Tour'); ?></a>
    	</div>
    	<?php endif; ?>
    	<div class="clear"></div>

    	<?php if($promotionCruise): ?>
    	<div class="content-title" style="margin-left:20px">
            <h2><a href="/promotion/2/1/Cruise.html"><?php echo $this->translate('List_Promotion_Cruise') ;?></a></h2>
        </div>
    	<div class="content-right-2-content" style="margin-top: 20px;">
    	    <?php foreach($promotionCruise as $k => $v): ?>
    	    <?php $url = "/". str_replace(' ', '-' ,trim($v['category_title'])). '/'. str_replace(' ', '-' ,trim($v['name'])). '-' .$v['id'] .'.html'; ?>
    		<div class="block-list">
    		    <div class="block-list-title">
                    <a href="<?php echo $url; ?>" title="<?php echo $v['title']; ?>">
                        <?php echo $this->snippet($v['title']); ?>
                    </a>
                </div>
                <div class="block-list-content">
					<a href="<?php echo $url; ?>"><img class="thumbnail" src="<?php echo $v['thumbnail']; ?>" /></a>
    				<div class="overview">
    					<?php echo $this->snippet($v['overview'], 140);?>
    				</div>
    				<div class="view-detail">
    				    <a href="<?php echo $url;?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
    				</div>
                </div>
    		</div>
    		<?php endforeach; ?>
    	</div>
    	<?php endif; ?>
    	<?php if(count($promotionCruise) >= 12): ?>
    	<div class="see-more-block">
            <a href="/promotion/2/1/Cruise.html"><?php echo $this->translate('More_Promotion_Cruise'); ?></a>
    	</div>
    	<?php endif; ?>
    </div>
    <!-- column right -->
    <div class="span4" id="content-left-2">
        <?php echo $this->partial('/right-render/support.phtml'); ?>
        <div class="clear"></div>
    </div>
</div>